<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of welcome
 *
 * @author Obi
 */
class Admin_laporan extends MY_Controller {

    function __construct() {
        parent::__construct();
        /*
		$this->m_pemesaanan = new M_pemesanan();
        $this->m_pemesaanan_det = new M_pemesanan_det();
        
        $this->m_produk = new M_produk();
        $this->m_produk_det = new M_produk_det();
		*/
		$this->mStock = new M_stock();
    }

    function index() {
        
    }
/*
    function form_pemesanan($id = NULL) {
        $data['title'] = 'Laporan Transaksi Pemesanan';

      
        $data['isi'] = 'form_pemesanan';
        $this->load->view('template_admin', $data);
    }

    function laporan_pemesanan() {

        $data['date1'] = $this->input->post('tanggal1');
        $data['date2'] = $this->input->post('tanggal2');


        $data['list'] = $this->m_pemesaanan->select_data_report($data['date1'], $data['date2']);

        foreach ($data['list'] as $dta) {
            $list_detail[] = $this->m_pemesaanan_det->detail_data($dta->id);
        }
        $data['list_det'] = $list_detail;
        $this->load->view('pemesanan', $data);
    }
*/
    function laporan_stock() {
	  $data['title'] ='Stock Profile' ;
	  $data['locstock_list'] = $this->mStock->getLocStock();
	  $data['isi'] = 'stock_profile';
	  $this->load->view('template_admin', $data);
    }

}

?>